package com.dxx.cloud.admin.module.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Size;
import org.hibernate.validator.constraints.NotEmpty;

/**
 * @author duh
 * @create 2018/12/28 14:10

 **/
@Schema(description = "添加用户请求体")
public class UserAddRequest {
    @Schema(description="商户id",example="1")
    private Long merId;

    @Schema(description="门店id",example="1")
    private Long shopId;

    @Schema(description="用户姓名",example="用户姓名")
    private String name;

    @Schema(description="手机号",example="15071185123")
    @NotEmpty
    private String mobile;

    @Schema(description="密码",example="abcd123")
    @Size(min = 6)
    private String password;

    @Schema(description="用户类型 1商户 2门店 3操作员",example="1")
    private Integer userType;

    @Schema(description="若为1,不校验设备")
    private Integer allDevices = 1;

    @Schema(description="创建者",example="admin")
    private String creator;

    @Schema(description="操作者",example="admin")
    private String operator;

    public Long getMerId() {
        return merId;
    }

    public void setMerId(Long merId) {
        this.merId = merId;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Integer getAllDevices() {
        return allDevices;
    }

    public void setAllDevices(Integer allDevices) {
        this.allDevices = allDevices;
    }
}
